<?php

/**
 * class BlockLRController
 * Выводит блок логина-навигации Юзера
 */
class NavigationController extends BlockController {

    public function getHTMLArray(RequestContext $context) {
        $ret = array();
        $user = $this->user;
        if($user->isLogged)
        {
            $params = array('user'=>$user);
            $ret['links'] = $this->view->getLinks($params);
        }
        else
        {
            $ret['links'] = "";
        }
        return $ret;
    }


}

?>
